home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tctutor.arc / TCTUTOR2.ARC / STRINGIN.C < prev    next >
C/C++ Source or Header  |  1991-10-26  |  400b  |  18 lines

  1.                                           /* Chapter 9 - Program 5 */
  2. #include "stdio.h"
  3.  
  4. main()
  5. {
  6. char big[25];
  7.  
  8.     printf("Input a character string, up to 25 characters.\n");
  9.     printf("An X in column 1 causes the program to stop.\n");
  10.  
  11.     do {
  12.        scanf("%s",big);
  13.        printf("The string is -> %s\n",big);
  14.     } while (big[0] != 'X');
  15.  
  16.     printf("End of program.\n");
  17. }
  18.